package com.xuecheng.user.exception;

import com.xuecheng.base.exception.XCPlusBaseException;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 手机号和邮箱不能同时为空
 * @date 2025/3/9 20:01
 */
public class CellPhoneAndEmailCannotBothBeNullException extends XCPlusBaseException {

    CellPhoneAndEmailCannotBothBeNullException(String message){
        super(message);
    }

    public static void cast(){
        throw new CellPhoneAndEmailCannotBothBeNullException(AuthError.CELL_PHONE_AND_EMAIL_CANNOT_BOTH_BE_NULL.getErrMsg());
    }
}
